package cfdt.ldl.dspchannel.controller;

import javax.annotation.Resource;

import cfdt.common.exception.CodeException;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import cfdt.common.vo.BaseResponse;
import cfdt.ldl.dspchannel.api.request.DcQueryRiskInformationRequest;
import cfdt.ldl.dspchannel.service.BaseInterface;

@RestController
public class RiskInformationController {

    @Resource(name = "queryRiskInformationService")
    private BaseInterface queryRiskInformationService;

    @PostMapping("/queryRiskInformation")
    public BaseResponse account(@RequestBody DcQueryRiskInformationRequest request) throws CodeException {
        return queryRiskInformationService.process(request);
    }
}
